import { createStore, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import rootReducer from './reducer'
import { getToken } from 'utils/storage'



 let middlewares = composeWithDevTools(applyMiddleware(thunk))


const store = createStore(
  rootReducer,
  middlewares
)

export default store